package com.shop.oss;

import com.alibaba.fastjson.JSONObject;
import com.shop.base.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@Api(tags = "OSS存储服务")
public interface ossService {
    /**
     * 图片上传
     * @param file
     * @return
     */
    @PostMapping("fileUpload")
    @ApiOperation(value = "OSS图片上传服务")
    BaseResponse<JSONObject> fileUpload(@RequestParam("file") MultipartFile file);
}
